//
//  DelBindUserApi.m
//  DTSTON
//
//  Created by 喻贵华 on 16/5/10.
//  Copyright © 2016年 Demo. All rights reserved.
//

#import "DelBindUserApi.h"

@implementation DelBindUserApi
{
    NSDictionary *_parameter;
}
-(id)initWithPar:(NSDictionary *)parameter
{
    self=[super init];
    if(self)
    {
        _parameter=parameter;
        
    }
    return self;
}
-(YTKRequestMethod)requestMethod
{
    return YTKRequestMethodPOST;
}

-(NSString *)requestUrl
{
    return @"/device/del_device_bind_user";
}
/*
 请求参数：
 uid			用户id				必选
 token			登录凭证			必选
 device_id		数据id				必选
 
 */
-(id)requestArgument
{
    
    NSMutableDictionary *mdic=[NSMutableDictionary getPubdic];
    if (_parameter[@"device_id"]) {
        [mdic setObject:_parameter[@"device_id"] forKey:@"device_id"];
    }
    if (_parameter[@"del_uid"]) {
        [mdic setObject:_parameter[@"del_uid"] forKey:@"del_uid"];
    }
    
    NSString *sign= [NSString getSign:mdic];
    [mdic setObject:sign forKey:@"sign"];
    return mdic;
}
-(void)dealloc
{
    NSLog(@"%@ dealloc",NSStringFromClass([self class]));
}
@end
